<?php


namespace app\mobile\controller\base;


use app\mobile\service\base\PractiseService as QuestionService;
use app\BaseController;
use think\response\Json;

class Practise extends BaseController
{
    /**
     * 列表
     * @return Json
     */
    public function index(QuestionService $questionService):Json
    {
        $params = request()->param();
        return $questionService->index($params);
    }

    /**
     * 列表
     * @return Json
     */
    public function lists(QuestionService $questionService):Json
    {
        $params = request()->param();
        return $questionService->lists($params);
    }

    /**
     * 详情
     * @param QuestionService $questionService
     * @return Json
     */
    public function read(QuestionService $questionService):Json
    {
        $params = request()->param();
        return $questionService->read($params);
    }
}